package io.seata.sharding4.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.seata.sharding4.common.dto.CommodityDTO;
import io.seata.sharding4.common.response.ObjectResponse;
import io.seata.sharding4.storage.entity.Storage;

/**
 * 仓库服务
 *
 * @author Administrator
 */
public interface IStorageService extends IService<Storage> {
    /**
     * 扣减库存
     *
     * @param commodityDTO
     * @return ObjectResponse
     */
    ObjectResponse decreaseStorage(CommodityDTO commodityDTO);
}
